function(doc){
	if(doc.doctype == 'product' && doc.brand){
		emit([doc.topcategorycode, doc.leafcategorycode, doc.brand], null);
	}
}